#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int N_K(int n, int k)
{
	if (k == 0)
		return 1;
	else
		return n * N_K(n, k - 1);
}

int main()
{
	int n = 0;
	int k = 0;
	scanf("%d %d", &n, &k);
	printf("%d",N_K(n, k));
	return 0;
}